import { AddFormatFunc, loopRuleType } from "../types";

AddFormatFunc<loopRuleType>({

	type: "LOOP",

	handle: (rule, FMC) => {
		return `while(true){\n${rule[1].map(item => FMC(item)).join("\n")}\n}`;
	},

})
